package com.atguigu.springcloud.service;

import com.atguigu.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author 懵懂的青春
 * @Date 2020/8/2 14:08
 * @Version 1.0
 * @Description
 **/
@Component
@FeignClient(value = "cloud-provider-payment")
public interface PaymentFeignService {

    @GetMapping(value = "/payment/get/{id}")
    CommonResult get(@PathVariable("id") Long id);

    @GetMapping(value = "/payment/feign/timeout")
    public String timeout();

}
